<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>可销售数量管理</title>
<meta name="decorator" content="default" />
<script type="text/javascript">
	$(document).ready(function() {

	});
	function page(n, s) {
		$("#pageNo").val(n);
		$("#pageSize").val(s);
		$("#searchForm").submit();
		return false;
	}
</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<shiro:hasPermission name="plat:tCargotypeForsale:view"><li class="active"><a
			href="${ctx}/rentproduct/tCargotypeForsale/">可销售数量列表</a></li>
		</shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="TCargotypeForsale"
		action="${ctx}/rentproduct/tCargotypeForsale/alllist" method="post"
		class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}" />
		<input id="pageSize" name="pageSize" type="hidden"
			value="${page.pageSize}" />
		<ul class="ul-form">
			<li><label>归属公司：</label> <form:select path="office"
					class="input-medium">
					<option value="">--请选择--</option>
					<form:options items="${fns:getOfficeListByFlatType(\"1\")}"
						itemLabel="name" itemValue="id" htmlEscape="false" />
				</form:select></li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}" />
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>车队名称</th>
				<th>车型名称</th>
				<th>车型总数</th>
				<th>车型可销售数量</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="tCargotypeForsale">
				<tr>
					<td>${tCargotypeForsale.office.name}</td>
					<td>${tCargotypeForsale.cargotype.typename}</td>
					<td>${tCargotypeForsale.totalnum}</td>
					<td>${tCargotypeForsale.forsalenum}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>